package cn.ainit.common;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class SpringContextTool implements ApplicationContextAware { 
    private static ApplicationContext context;
    
    public void setApplicationContext(ApplicationContext acx) {
            context = acx; 
    } 
    public static ApplicationContext getApplicationContext() { 
            return context; 
    } 
}